From 33b75d59f14fadcda046448cd6df6f4aa4982d9a Mon Sep 17 00:00:00 2001 From: Adrian Bunk Date: Thu, 25 Nov 2021 10:04:27 +0200 Subject: [PATCH] Restore the 83_allow_gles_platforms.patch hack for Qt with OpenGL ES --- debian/patches/83_allow_gles_platforms.patch | 29 ++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 30 insertions(+) create mode 100644 debian/patches/83_allow_gles_platforms.patch diff --git a/debian/patches/83_allow_gles_platforms.patch b/debian/patches/83_allow_gles_platforms.patch new file mode 100644 index 000000000..e08f7a41d --- /dev/null +++ b/debian/patches/83_allow_gles_platforms.patch @@ -0,0 +1,29 @@ +Subject: HACK: QVTKOpenGLWindow.cxx: Define GL_BACK_{LEFT,RIGHT} for Qt with OpenGL ES +From: Adrian Bunk + +Date: Fri, 11 Dec 2020 10:42:37 +0200 + + +--- + GUISupport/Qt/QVTKOpenGLWindow.cxx | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/GUISupport/Qt/QVTKOpenGLWindow.cxx b/GUISupport/Qt/QVTKOpenGLWindow.cxx +index 3bddc19809..79d5c2b653 100644 +--- a/GUISupport/Qt/QVTKOpenGLWindow.cxx ++++ b/GUISupport/Qt/QVTKOpenGLWindow.cxx +@@ -35,6 +35,11 @@ + #include "vtkObjectFactory.h" + #include "vtkOpenGLState.h" + ++#ifndef GL_BACK_LEFT ++#define GL_BACK_LEFT GL_BACK ++#define GL_BACK_RIGHT GL_BACK ++#endif ++ + QVTKOpenGLWindow::QVTKOpenGLWindow(QOpenGLWindow::UpdateBehavior ub, QWindow* p) + : QVTKOpenGLWindow(vtkSmartPointer::New(), nullptr, ub, p) + { +-- +2.20.1 + diff --git a/debian/patches/series b/debian/patches/series index 2a13b5d44..6c21f514a 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -4,6 +4,7 @@ 40_vtkpython-9.patch 50_fix_python-modules_path.patch 60_fix_path_perl.patch +83_allow_gles_platforms.patch 95_java_mach-arch_fix.patch 97_reproducible_builds.patch 98_fix_mpi4py.py -- 2.30.2